<section class="bg-light-customer pb-5">
	<div class="container">
		<div class="row">
			<div class="col-md-12">

				<div id="link">
					<div class="title">
						<p>Friendship link</p>
					</div>
					<ul>
						<?php
						// 获取友情链接菜单
						$locations = get_nav_menu_locations();
						if (isset($locations['link-menu'])) :
							$links_id = $locations['link-menu'];
							$links = wp_get_nav_menu_items($links_id);
						?>
							<?php foreach ($links as $link) : ?>
								<li><a href="<?php echo $link->url; ?>" rel="noopener" target="_blank"><?php echo $link->title; ?></a></li>
							<?php endforeach; ?>
						<?php endif; ?>
					</ul>
				</div>

			</div>
		</div>
	</div>
</section>
<footer class="mt-auto">
	<div class="container-fluid bg-footer">
		<div class="container py-5">
			<div class="row sidebar-footer pt-3">
				<div class="col-md-6 col-lg-4 mb-3">
					<?php
					$custom_logo_id = get_theme_mod('custom_logo');
					$logo = wp_get_attachment_image_src($custom_logo_id, 'full');
					?>
					<img src="<?php echo esc_url($logo[0]); ?>" class="mb-3" alt="<?php echo get_bloginfo('name'); ?>">
					<p>Established in 2008, Wentong has over 20 years of experience in developing and manufacturing of smart card machines and post-press equipment. We have been committed to constantly growing and improving our products and service to meet all our customer’s requirements for production of children’s books, board books, paper cards and plastic cards. Our wide range of products includes die cutting machine, card collating machine, card punching machine, SIM card production machine, board book mounting and gluing machine, automatic packaging machine, ultrasonic welding system, magnetic tape laying machine, sheet cleaning machine, etc. which are widely applied in a variety of industries such as card production, printing & packaging, children’s book, paper products, etc.</p>
				</div>
				<div class="col-md-6 col-lg-2 sf-product mb-3">
					<h5>Service Items</h5>
					<ul id="menu-footer" class="list-unstyled">
						<?php $product_cat = get_terms('product_cat'); ?>
						<?php foreach ($product_cat as $cat) : ?>
							<li id="menu-item-<?php echo $cat->ID; ?>" class="menu-item menu-item-type-post_type menu-item-object-post menu-item-<?php echo $cat->ID; ?>"><a href="<?php echo get_term_link($cat->term_id); ?>"><i class="fa fa-angle-right"></i><?php echo $cat->name; ?></a></li>
						<?php endforeach; ?>
					</ul>
				</div>
				<div class="col-md-6 col-lg-4 sf-contact mb-3">
					<h5>About the company</h5>
					<ul class="list-unstyled">
						<?php
						$locations = get_nav_menu_locations();
						if (isset($locations['buttom-menu'])) :
							$buttoms_id = $locations['buttom-menu'];
							$buttoms = wp_get_nav_menu_items($buttoms_id);
						?>
							<?php foreach ($buttoms as $buttom) : ?>
								<li><a href="<?php echo $buttom->url; ?>" rel="noopener" target="_blank"><?php echo $buttom->title; ?></a></li>
							<?php endforeach; ?>
						<?php endif; ?>
					</ul>
				</div>
			</div>
		</div>
	</div>
	<?php wp_footer(); ?>
</footer>
</body>

</html>